﻿<Page
    x:Class="TT.CIT.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:TT.CIT"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" Loaded="Page_Loaded" Foreground="#FFED1941" Background="#FFF9FCFC" Unloaded="Page_Unloaded">

    <Page.Resources>
        <Style x:Key="BaseStatusStyle" TargetType="TextBlock">
            <Setter Property="FontFamily" Value="Segoe UI Semilight"/>
            <Setter Property="FontSize" Value="14.667"/>
            <Setter Property="Margin" Value="0,0,0,5"/>
        </Style>
        <Style x:Key="StatusStyle" BasedOn="{StaticResource BaseStatusStyle}" TargetType="TextBlock">
            <Setter Property="Foreground" Value="Green"/>
        </Style>
        <Style x:Key="ErrorStyle" BasedOn="{StaticResource BaseStatusStyle}" TargetType="TextBlock">
            <Setter Property="Foreground" Value="#FFED1941"/>
        </Style>
    </Page.Resources>

    <Page.BottomAppBar>
        <CommandBar Opened="CommandBar_Opened">
            <CommandBar.ContentTransitions>
                <TransitionCollection>
                    <EntranceThemeTransition/>
                </TransitionCollection>
            </CommandBar.ContentTransitions>
            <AppBarButton Icon="Accept" Label="Marcação" Click="AppBarButton_Click"/>
            <AppBarButton Icon="Setting" Label="Config" Click="AppBarButton_Click_2" />
        </CommandBar>
    </Page.BottomAppBar>

    <Grid Loaded="Grid_Loaded">
        <Grid.ChildrenTransitions>
            <TransitionCollection>
                <EntranceThemeTransition/>
            </TransitionCollection>
        </Grid.ChildrenTransitions>
        <Image x:Name="Logo" HorizontalAlignment="Left" Height="54" Margin="26,10,0,0" VerticalAlignment="Top" Width="135" Source="Assets/CIT Logo.fw.png" Stretch="UniformToFill">
            <Image.Transitions>
                <TransitionCollection>
                    <EntranceThemeTransition/>
                </TransitionCollection>
            </Image.Transitions>
        </Image>
        <Grid Margin="59,337,30,114" HorizontalAlignment="Center" Width="295">
            <TextBlock HorizontalAlignment="Left" Margin="0,10,0,0" TextWrapping="Wrap" Text="Usuário" VerticalAlignment="Top" FontSize="16" FontFamily="Arial Rounded MT Bold" FontWeight="Bold"/>
            <TextBlock HorizontalAlignment="Left" Margin="0,63,0,0" TextWrapping="Wrap" Text="Senha" VerticalAlignment="Top" FontSize="16" FontFamily="Arial Rounded MT Bold" FontWeight="Bold"/>
            <TextBox x:Name="Usuario" HorizontalAlignment="Left" Margin="95,0,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="186" BorderBrush="#FFA4A4A4" PlaceholderText="usuário" Foreground="#FF20BDBE" Background="#FFF9FCFC" SelectionHighlightColor="#FFED1941"/>
            <PasswordBox x:Name="Senha" HorizontalAlignment="Left" Margin="95,53,0,0" VerticalAlignment="Top" Width="186" BorderBrush="#FFA4A4A4" PlaceholderText="senha" Foreground="#FF20BDBE" Background="#FFF9FCFC" SelectionHighlightColor="#FFED1941"/>
        </Grid>
        <Image x:Name="TimeTracking" HorizontalAlignment="Left" Height="30" Margin="26,69,0,0" VerticalAlignment="Top" Width="193" Source="Assets/Time Tracking.fw.png" Stretch="UniformToFill">
            <Image.Transitions>
                <TransitionCollection>
                    <EntranceThemeTransition/>
                </TransitionCollection>
            </Image.Transitions>
        </Image>
        <TextBlock x:Name="Data" HorizontalAlignment="Center" Margin="0,119,0,0" TextWrapping="Wrap" Text="12/06/2014" VerticalAlignment="Top" FontFamily="Segoe WP Black" FontSize="26" FontWeight="Bold" Width="155" Foreground="#FF20BDBE" TextAlignment="Center">
            <TextBlock.Transitions>
                <TransitionCollection>
                    <EntranceThemeTransition/>
                </TransitionCollection>
            </TextBlock.Transitions>
        </TextBlock>
        <TextBlock x:Name="Hora" HorizontalAlignment="Center" Margin="0,151,0,0" TextWrapping="Wrap" Text="23:00:00" VerticalAlignment="Top" FontFamily="Segoe WP Black" FontSize="26" FontWeight="Bold" Width="117" Foreground="#FFED1941" TextAlignment="Center">
            <TextBlock.Transitions>
                <TransitionCollection>
                    <EntranceThemeTransition/>
                </TransitionCollection>
            </TextBlock.Transitions>
        </TextBlock>
        <TextBlock x:Name="Retorno" HorizontalAlignment="Center" Margin="10,462,10,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="64" Width="364" TextAlignment="Center" FontFamily="Arial Rounded MT Bold" FontSize="18" FontWeight="Bold" Foreground="#FF20BDBE"/>
        <Ellipse Width="100" Stroke="#FFA0A0A0" StrokeThickness="8" Height="100" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0,210,0,0">
            <Ellipse.Fill>
                <ImageBrush x:Name="Foto" ImageSource="Assets/guest.png" AlignmentX="Center" AlignmentY="Center" Stretch="UniformToFill" />
            </Ellipse.Fill>
        </Ellipse>
        <TextBlock x:Name="UltimoCheckin" Margin="48,436,0,0" TextWrapping="Wrap" Text="Último Checkin:" VerticalAlignment="Top" FontFamily="Segoe WP SemiLight" FontSize="16" Width="316" Foreground="#FFED1941" HorizontalAlignment="Center">
            <TextBlock.Transitions>
                <TransitionCollection>
                    <EntranceThemeTransition/>
                </TransitionCollection>
            </TextBlock.Transitions>
        </TextBlock>
        <TextBlock x:Name="Log" HorizontalAlignment="Left" Margin="114,187,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="137"/>
    </Grid>
</Page>
